package control.manager
{
	public class NameManager
	{
		/**单姓**/
		private static const XING:String = 
			"赵钱孙李周吴郑王冯陈楮卫蒋沈韩杨朱秦尤许何吕施张孔曹严华金魏陶姜" +
			"戚谢邹喻柏水窦章云苏潘葛奚范彭郎鲁韦昌马苗凤花方俞任袁柳酆鲍史唐" +
			"费廉岑薛雷贺倪汤滕殷罗毕郝邬安常乐于时傅皮卞齐康伍余元卜顾孟平黄" +
			"和穆萧尹姚邵湛汪祁毛禹狄米贝明臧计伏成戴谈宋茅庞熊纪舒屈项祝董梁" +
			"杜阮蓝闽席季麻强贾路娄危江童颜郭梅盛林刁锺徐丘骆高夏蔡田樊胡凌霍" +
			"虞万支柯昝管卢莫经房裘缪干解应宗丁宣贲邓郁单杭洪包诸左石崔吉钮龚" +
			"程嵇邢滑裴陆荣翁荀羊於惠甄麹家封芮羿储靳汲邴糜松井段富巫乌焦巴弓" +
			"牧隗山谷车侯宓蓬全郗班仰秋仲伊宫宁仇栾暴甘斜厉戎祖武符刘景詹束龙" +
			"叶幸司韶郜黎蓟薄印宿白怀蒲邰从鄂索咸籍赖卓蔺屠蒙池乔阴郁胥能苍双" +
			"闻莘党翟谭贡劳逄姬申扶堵冉宰郦雍郤璩桑桂濮牛寿通边扈燕冀郏浦尚农" +
			"温别庄晏柴瞿阎充慕连茹习宦艾鱼容向古易慎戈廖庾终暨居衡步都耿满弘" +
			"匡国文寇广禄阙东欧殳沃利蔚越夔隆师巩厍聂晁勾敖融冷訾辛阚那简饶空" +
			"曾毋沙乜养鞠须丰巢关蒯相查后荆红游竺权逑盖益桓公仉督晋楚阎法汝鄢" +
			"涂钦归海岳帅缑亢况后有琴商牟佘佴伯赏墨哈谯笪年爱阳佟言福";
		/**复姓**/
		private static const FUXING:Array = 
			["司马","上官","欧阳","夏侯","诸葛","东方","皇甫","尉迟","公孙","轩辕","令狐","宇文","长孙","慕容","司徒","西门","南宫"];
		/**
		 * 非主流名字。。。。 
		 */		
		private static const NAME :Array = 
			["笨笨丶狗","╲So，怀菍","DK.煞月","阳光oO兔","⺌洳輠﹎.﹎","街角、的背影","等、念。","红尘有伱醉逍遥","↙为谁╬倾城↘",
				"∠MuSīc佑铒钉","－傷的唯美丶","简单是福丶","╮ 禁 語﹎","Soul丶亲兽","左手☆旋风","┧決戰ξ兲芐┞",
				"え错 忆ガ","、姿态妖娆","丿葬儿、、、","淡情伤心、","悃悃の鋩鋩の","凌晨戏丶","在你肩上哭泣ツ","花の自飘零",
				"凸凸丶灬","︶寂寞、点着烟","看丶泪如雨下","自由de寂寞","银水晶ㄨ的爱","花开、花落","ゞ偷吻ヽ你的唇","淡默、沉離",
				"余枫落雪","爱丶你给不起ゝ","ヾVIP↘的忧伤☆"];
		
		public function NameManager()
		{
			
		}
		
		/**随机创建一个名称**/
		public static function creatXingMing():String
		{
			var xingming:String = "";
//			//姓
//			var xing:String;
//			//名
//			var ming:String;
//			
//			xing = XING;
//			ming = randomChar() + randomChar();
//			
//			
//			xingming = (Math.random()< 0.5)?String(xing.split("")[Math.floor(Math.random() * xing.split("").length)]) + ming:String(FUXING[Math.floor(Math.random() * FUXING.length)]) + ming;
			
			var index :int = Math.floor(Math.random() * NAME.length);
			xingming = NAME[index];
			return xingming;
		}
		
		/**随机获得一个汉字**/
		public static function randomChar():String
		{
			var index:int = 19968 + (30000-19968)*Math.random();
			return String.fromCharCode(index);
		}
	
	}
}